package com.example.aiyou.passwordmanage.base;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

/**
 * Created by hello on 2017-09-07.
 */

public class BaseActivity extends AppCompatActivity {
    public static long id;
    public static long userId;
    @Override protected void onCreate( Bundle savedInstanceState) {
        super.onCreate( savedInstanceState);
        Log.d(" BaseActivity", getClass(). getSimpleName());
        ActivityManage.addActivity(this);
    }
    @Override protected void onDestroy() {
        super.onDestroy();
        ActivityManage.removeActivity(this);
    }

    public static long getId() {
        return id;
    }

    public static void setId(long id) {
        BaseActivity.id = id;
    }

    public static long getUserId() {
        return userId;
    }

    public static void setUserId(long userId) {
        BaseActivity.userId = userId;
    }
}
